<?php
/**
 * 支付管理
 */
namespace Admin\Controller;
use Common\Controller\AdminbaseController;
header('Content-type:text/html;charset=utf-8');

class OddsController extends AdminbaseController{

	function k3(){
		if($_POST){
			$date = array(
               'daxiao' => trim(I("daxiao")),
				'he3' => trim(I("he3_he18")),
				'he4' => trim(I("he4_he17")),
				'he5' => trim(I("he5_he16")),
				'he6' => trim(I("he6_he15")),
				'he7' => trim(I("he7_he14")),
				'he8' => trim(I("he8_he13")),
				'he9' => trim(I("he9_he12")),
				'he10' => trim(I("he10_he11")),
				't3tx' => trim(I("t3tx")),
				't3dx' => trim(I("t3dx")),
				'bt3' => trim(I("bt3")),
				't3lh' => trim(I("t3lh")),
				'ertfx' => trim(I("ertfx")),
				'ertdx' => trim(I("ertdx")),
				'bt2' => trim(I("bt2"))
			);
			$data = M("rebate_k3")->where("id=1")->find();
			if($data){
				M("rebate_k3")->where("id=1")->save($date);
				$this->success("修改成功",U("Odds/k3"));
			}else{
				M("rebate_k3")->add($date);
				$this->success("保存成功",U("Odds/k3"));
			}
		}else{
			$data = M("rebate_k3")->where("id=1")->find();
            $this->assign("arr",$data);
			$this->display();
		}
	}

    function fc3d(){
		if($_POST){
			$date = array(
				'daxiao' => trim(I("daxiao")),
				'yxfs' => trim(I("yxfs")),
				'hou2zhix' => trim(I("hou2zhix")),
				'hou2zux' => trim(I("hou2zux")),
				'qian2zhix' => trim(I("qian2zhix")),
				'qian2zux' => trim(I("qian2zux")),
				'sxingzhix' => trim(I("sxingzhix")),
				'sxingzux' => trim(I("sxingzux")),
				'sxingzu3' => trim(I("sxingzu3")),
				'sxingzu6' => trim(I("sxingzu6")),
				'sxinghunhe' => trim(I("sxinghunhe")),
				'sxingbd' => trim(I("sxingbd")),
				'sxingzu3ds' => trim(I("sxingzu3ds")),
				'sxingzu6ds' => trim(I("sxingzu6ds")),
				'sxingyima' => trim(I("sxingyima")),
				'sxingerma' => trim(I("sxingerma")),
			);
			$data = M("rebate_fc3d")->where("id=1")->find();
			if($data){
				M("rebate_fc3d")->where("id=1")->save($date);
				$this->success("修改成功",U("Odds/fc3d"));
			}else{
				M("rebate_fc3d")->add($date);
				$this->success("保存成功",U("Odds/fc3d"));
			}
		}else{
			$data = M("rebate_fc3d")->where("id=1")->find();
			$this->assign("arr",$data);
			$this->display();
		}
	}

	function kl8(){
		if($_POST){
			$date = array(
				'rx1' => trim(I("rx1")),
				'rx2' => trim(I("rx2")),
				'rx3mid3' => trim(I("rx3mid3")),
				'rx3mid2' => trim(I("rx3mid2")),
				'rx4mid4' => trim(I("rx4mid4")),
				'rx4mid3' => trim(I("rx4mid3")),
				'rx4mid2' => trim(I("rx4mid2")),
				'rx5mid5' => trim(I("rx5mid5")),
				'rx5mid4' => trim(I("rx5mid4")),
				'rx5mid3' => trim(I("rx5mid3")),
				'rx6mid6' => trim(I("rx6mid6")),
				'rx6mid5' => trim(I("rx6mid5")),
				'rx6mid4' => trim(I("rx6mid4")),
				'rx6mid3' => trim(I("rx6mid3")),
				'rx7mid7' => trim(I("rx7mid7")),
				'rx7mid6' => trim(I("rx7mid6")),
				'rx7mid5' => trim(I("rx7mid5")),
				'rx7mid4' => trim(I("rx7mid4")),
				'rx7mid0' => trim(I("rx7mid0")),
				'qwsx' => trim(I("qwsx")),
				'qwsxhe' => trim(I("qwsxhe")),
				'qwjo' => trim(I("qwjo")),
				'qwjohe' => trim(I("qwjohe")),
				'qwhezhi' => trim(I("qwhezhi")),
			);
			$data = M("rebate_kl8")->where("id=1")->find();
			if($data){
				M("rebate_kl8")->where("id=1")->save($date);
				$this->success("修改成功",U("Odds/kl8"));
			}else{
				M("rebate_kl8")->add($date);
				$this->success("保存成功",U("Odds/kl8"));
			}
		}else{
			$data = M("rebate_kl8")->where("id=1")->find();
			$this->assign("arr",$data);
			$this->display();
		}
	}

	function pk10(){
		if($_POST){
			$date = array(
				'dwd' => trim(I("dwd")),
				'q5fs' => trim(I("q5fs")),
				'q5ds' => trim(I("q5ds")),
				'q4fs' => trim(I("q4fs")),
				'q4ds' => trim(I("q4ds")),
				'q3fs' => trim(I("q3fs")),
				'q3ds' => trim(I("q3ds")),
				'q2fs' => trim(I("q2fs")),
				'q2ds' => trim(I("q2ds")),
				'q1fs' => trim(I("q1fs")),
			);
			$data = M("rebate_pk10")->where("id=1")->find();
			if($data){
				M("rebate_pk10")->where("id=1")->save($date);
				$this->success("修改成功",U("Odds/pk10"));
			}else{
				M("rebate_pk10")->add($date);
				$this->success("保存成功",U("Odds/pk10"));
			}
		}else{
			$data = M("rebate_pk10")->where("id=1")->find();
			$this->assign("arr",$data);
			$this->display();
		}
	}

	function pl3(){
		if($_POST){
			$date = array(
				'daxiao' => trim(I("daxiao")),
				'yxfs' => trim(I("yxfs")),
				'hou2zhix' => trim(I("hou2zhix")),
				'hou2zux' => trim(I("hou2zux")),
				'qian2zhix' => trim(I("qian2zhix")),
				'qian2zux' => trim(I("qian2zux")),
				'sxingzhix' => trim(I("sxingzhix")),
				'sxingzux' => trim(I("sxingzux")),
				'sxingzu3' => trim(I("sxingzu3")),
				'sxingzu6' => trim(I("sxingzu6")),
				'sxinghunhe' => trim(I("sxinghunhe")),
				'sxingbd' => trim(I("sxingbd")),
				'sxingzu3ds' => trim(I("sxingzu3ds")),
				'sxingzu6ds' => trim(I("sxingzu6ds")),
				'sxingyima' => trim(I("sxingyima")),
				'sxingerma' => trim(I("sxingerma")),
			);
			$data = M("rebate_pl3")->where("id=1")->find();
			if($data){
				M("rebate_pl3")->where("id=1")->save($date);
				$this->success("修改成功",U("Odds/pl3"));
			}else{
				M("rebate_pl3")->add($date);
				$this->success("保存成功",U("Odds/pl3"));
			}
		}else{
			$data = M("rebate_pl3")->where("id=1")->find();
			$this->assign("arr",$data);
			$this->display();
		}
	}

	function ssc(){
		if($_POST){
			$date = array(
				'dx2xing' => trim(I("dx2xing")),
				'dx3xing' => trim(I("dx3xing")),
				'yxingfs' => trim(I("yxingfs")),
				'exingzxfs' => trim(I("exingzxfs")),
				'exingzxds' => trim(I("exingzxds")),
				'exingzxhz' => trim(I("exingzxhz")),
				'exingkadu' => trim(I("exingkadu")),
				'exingzufs' => trim(I("exingzufs")),
				'exingzuds' => trim(I("exingzuds")),
				'exingzuhz' => trim(I("exingzuhz")),
				'exingzubd' => trim(I("exingzubd")),
				'sxingfs' => trim(I("sxingfs")),
				'sxingds' => trim(I("sxingds")),
				'sxingzhz' => trim(I("sxingzhz")),
				'sxingkudu' => trim(I("sxingkudu")),
				'sxingzuhe' => trim(I("sxingzuhe")),
				'sxingzu3' => trim(I("sxingzu3")),
				'sxingzu6' => trim(I("sxingzu6")),
				'sxinghunhe' => trim(I("sxinghunhe")),
				'sxingzubd' => trim(I("sxingzubd")),
				'sxingzu3ds' => trim(I("sxingzu3ds")),
				'sxingzu6ds' => trim(I("sxingzu6ds")),
				'sxingyima' => trim(I("sxingyima")),
				'sxingerma' => trim(I("sxingerma")),
				'fxingfs' => trim(I("fxingfs")),
				'fxingds' => trim(I("fxingds")),
				'fxingzu24' => trim(I("fxingzu24")),
				'fxingzu12' => trim(I("fxingzu12")),
				'fxingzu6' => trim(I("fxingzu6")),
				'fxingzu4' => trim(I("fxingzu4")),
				'fxingyima' => trim(I("fxingyima")),
				'fxingerma' => trim(I("fxingerma")),
				'wxingfs' => trim(I("wxingfs")),
				'wxingds' => trim(I("wxingds")),
				'wxingzu120' => trim(I("wxingzu120")),
				'wxingzu60' => trim(I("wxingzu60")),
				'wxingzu30' => trim(I("wxingzu30")),
				'wxingzu20' => trim(I("wxingzu20")),
				'wxingzu10' => trim(I("wxingzu10")),
				'wxingzu5' => trim(I("wxingzu5")),
				'wxingyima' => trim(I("wxingyima")),
				'wxingerma' => trim(I("wxingerma")),
				'wxingsanma' => trim(I("wxingsanma")),
				'wxingyifan' => trim(I("wxingyifan")),
				'wxinghaos' => trim(I("wxinghaos")),
				'wxingbaox' => trim(I("wxingbaox")),
				'wxingsiji' => trim(I("wxingsiji")),
			);
			$data = M("rebate_ssc")->where("id=1")->find();
			if($data){
				M("rebate_ssc")->where("id=1")->save($date);
				$this->success("修改成功",U("Odds/ssc"));
			}else{
				M("rebate_ssc")->add($date);
				$this->success("保存成功",U("Odds/ssc"));
			}
		}else{
			$data = M("rebate_ssc")->where("id=1")->find();
			$this->assign("arr",$data);
			$this->display();
		}
	}

	function syx5(){
		if($_POST){
			$date = array(
				'smq3zhifs' => trim(I("smq3zhifs")),
				'smq3zhids' => trim(I("smq3zhids")),
				'smq3zufs' => trim(I("smq3zufs")),
				'smq3zuds' => trim(I("smq3zuds")),
				'smq3zudt' => trim(I("smq3zudt")),

				'emq2zhifs' => trim(I("emq2zhifs")),
				'emq2zhids' => trim(I("emq2zhids")),
				'emq2zufs' => trim(I("emq2zufs")),
				'emq2zuds' => trim(I("emq2zuds")),
				'emq2zudt' => trim(I("emq2zudt")),

				'q3ymbdw' => trim(I("q3ymbdw")),
				'dwdfs' => trim(I("dwdfs")),
				'd5s0' => trim(I("d5s0")),
				'd4s1' => trim(I("d4s1")),
				'd3s2' => trim(I("d3s2")),
				'd2s3' => trim(I("d2s3")),
				'd1s4' => trim(I("d1s4")),
				'd0s5' => trim(I("d0s5")),
				'mid03' => trim(I("mid03")),
				'mid04' => trim(I("mid04")),

				'mid05' => trim(I("mid05")),
				'mid06' => trim(I("mid06")),
				'rxfs1z1' => trim(I("rxfs1z1")),
				'rxfs2z2' => trim(I("rxfs2z2")),
				'rxfs3z3' => trim(I("rxfs3z3")),
				'rxds1z1' => trim(I("rxds1z1")),
				'rxfs4z4' => trim(I("rxfs4z4")),
				'rxfs5z5' => trim(I("rxfs5z5")),
				'rxfs6z5' => trim(I("rxfs6z5")),
				'rxfs7z5' => trim(I("rxfs7z5")),

				'rxfs8z5' => trim(I("rxfs8z5")),
				'rxds2z2' => trim(I("rxds2z2")),
				'rxds3z3' => trim(I("rxds3z3")),
				'rxds4z4' => trim(I("rxds4z4")),
				'rxds5z5' => trim(I("rxds5z5")),
				'rxds6z5' => trim(I("rxds6z5")),
				'rxds7z5' => trim(I("rxds7z5")),
				'rxds8z5' => trim(I("rxds8z5")),
				'rxdt2z2' => trim(I("rxdt2z2")),
				'rxdt3z3' => trim(I("rxdt3z3")),
				'rxdt4z4' => trim(I("rxdt4z4")),
				'rxdt5z5' => trim(I("rxdt5z5")),
				'rxdt6z5' => trim(I("rxdt6z5")),
				'rxdt7z5' => trim(I("rxdt7z5")),
				'rxdt8z5' => trim(I("rxdt8z5")),
			);
			$data = M("rebate_syx5")->where("id=1")->find();
			if($data){
				M("rebate_syx5")->where("id=1")->save($date);
				$this->success("修改成功",U("Odds/syx5"));
			}else{
				M("rebate_syx5")->add($date);
				$this->success("保存成功",U("Odds/syx5"));
			}
		}else{
			$data = M("rebate_syx5")->where("id=1")->find();
			$this->assign("arr",$data);
			$this->display();
		}
	}






































}
?>